
import request from '/@/utils/request'
export function add(data) {
  return request({
    url: 'admin/sys/role/add',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'admin/sys/role/delete',
    method: 'post',
    data: {
      roleIds: ids
    }
  })
}
export function edit(data) {
  return request({
    url: 'admin/sys/role/update',
    method: 'post',
    data
  })
}
export function rolelist(params) {
  return request({
    url: 'admin/sys/role/page',
    method: 'get',
    params
  })
}

export function roleinfo(params) {
  return request({
    url: 'admin/sys/role/info',
    method: 'get',
    params
  })
}


export default { add, edit, del }

